<h1>Listing questions</h1>

<table>
  <tr>
    <th>Parent</th>
    <th>Text</th>
    <th>Instruction</th>
    <th>Note</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @questions.each do |question| %>
  <tr>
    <td><%= question.parent_id %></td>
    <td><%= question.text %></td>
    <td><%= question.instruction %></td>
    <td><%= question.note %></td>
    <td><%= link_to 'Show', question %></td>
    <td><%= link_to 'Edit', edit_question_path(question) %></td>
    <td><%= link_to 'Destroy', question, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Question', new_question_path %>
